package com.woniu.supermarket.vo;

import com.woniu.supermarket.entity.Brand;
import com.woniu.supermarket.entity.Category;
import com.woniu.supermarket.entity.Unit;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

@ApiModel(description = "封装分页查询的数据")
@Data
public class GoodsVo {
    @ApiModelProperty(value = "商品id")
    private Integer id;
    @ApiModelProperty(value = "商品编码")
    private String code;
    @ApiModelProperty(value = "商品名")
    private String name;
    @ApiModelProperty(value = "商品图片")
    private String img;
    @ApiModelProperty(value = "商品品牌")
    private Brand brand;
    @ApiModelProperty(value = "商品类别")
    private Category category;
    @ApiModelProperty(value = "商品单位")
    private Unit unit;
    @ApiModelProperty(value = "商品成本价")
    private BigDecimal costPrice;
    @ApiModelProperty(value = "商品零售价")
    private BigDecimal retailPrice;
    @ApiModelProperty(value = "商品详情介绍")
    private String description;
    @ApiModelProperty(value = "商品状态")
    private Integer status;
}
